import {request} from "./request"
import Qs from 'qs'

export function klogin(user,pwd) {
    return request({
        url:"/login",
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        data: Qs.stringify({
            name: user,
            password: pwd
        })
        //qs.stringify()将对象 序列化成URL的形式，以&进行拼接
    })

}